<canvas id="{{$type}}" width="400" height="400"></canvas>
<script>
    var {{$type}} = @json($moviePie);

$(function () {
    var ctx = document.getElementById("{{$type}}").getContext('2d');
    var myDoughnutChart = new Chart(ctx, {
        type: 'doughnut',
        data: {{$type}}
    });
});
</script>
